var __rate_content__ = '';

function rate(post, s1, s2, s3, s4, s5, s6, selectreason, reason) {
// s1 = 金币 s2 = 原创 s3 = 威望 s4 = s5 = s6 = 贡献
	var rate_form = document.getElementById("rate_form");
	rate_form.formhash.value = post.page.formhash;
	rate_form.ratesubmit.value = 'yes';
	rate_form.referer.value = post.url;
	rate_form.score1.value = s1;
	rate_form.score2.value = s2;
	rate_form.score3.value = s3;
	rate_form.score6.value = s6;
	rate_form.selectreason.value = selectreason;
	rate_form.reason.value = reason;
	rate_form.tid.value = post.tid;
	rate_form.pid.value = post.pid;
	rate_form.page.value = post.page.number;
//	log(rate_form.innerHTML);
	rate_form.action = url_prefix + 'misc.php?action=rate&inajax=1';
	rate_form.target = '_hidden_frame';
	rate_form.submit();
}
